#ifndef CONTROLL_H
#define CONTROLL_H
	
#include "terminal.h"
#include "menu.h"
#include "inout.h"


//uint8_t test;
//void inctest(void);

//uint8_t digitbuff[2 + 1];
//uint8_t digitbuffidx;
//bool inputmode;
//bool inputmode_donly;

typedef struct 
{
	bool inputmode;
	bool inputmode_donly;
} controlglobals_t;

controlglobals_t controlglobs;



//uint8_t inputmodecount;
char ionamebuff[IONAMEMAXLENGTH + 1]; 
//uint8_t ionamebuffidx;

char ionames[IOPORTS][IONAMEMAXLENGTH + 1];

void getsequence(void);

void setio(void);
void setconfig(void);
void settime(void);
void setonoffdel(void);
void setmainm(bool next);
void setsubm(bool next);
//void select_mframefunc(bool next);

#endif
